<?xml version="1.0" encoding="utf-8"?>
<configuration>
 
  <configSections>
    <sectionGroup name="ServiceAutoProvisioningGroup">
      <section name="ServiceAutoProvisioning" type="Sustainalytics.ESGRatings.Computing.Service.Helpers.ServiceAutoProvisioningSection, Sustainalytics.ESGRatings.Computing.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" allowDefinition="Everywhere" allowExeDefinition="MachineToApplication" restartOnExternalChanges="true"/>

    </sectionGroup>
    <!-- Other <section> and <sectionGroup> elements. -->

  </configSections>

  <connectionStrings>
    <add name="ClientPlatform" connectionString="mongodb://localhost:27017/ClientPlatform" />
    <add name="ActiveMQ" connectionString="activemq:tcp://activemq.test.sustainalytics.com:61616" />
    <add name="ActiveMQQueue" connectionString="queue://ConnectionStringsQueueDev" />
    <add name="ActiveMQTopic" connectionString="Synchronization.Topic.Dev" />
    <add name="TopicCustomerId" connectionString="SynchronizationService" />
  </connectionStrings>
  
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/>
  </startup>
  <system.diagnostics>
    <trace autoflush="true" indentsize="4">
      <listeners>
        <add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="application.log"/>
        <add name="delimitedListener" type="System.Diagnostics.DelimitedListTraceListener" delimiter="," initializeData="delimitedOutput.csv" traceOutputOptions="ProcessId, DateTime"/>
        <remove name="Default"/>
      </listeners>
    </trace>
  </system.diagnostics>


  <ServiceAutoProvisioningGroup>
  <!--<ServiceAutoProvisioning connectionString="mongodb://localhost:27017/RPHistoricalDataSet" getLatestSet="" setId=""/>-->
    <ServiceAutoProvisioning connectionString="mongodb://54.154.132.43:27017/RPHistoricalDataSet" setId="066589f7-b48a-4e39-aec3-b83e825309bc" getLatestSet="True"/>

  </ServiceAutoProvisioningGroup>

 
  <appSettings>
    
    <add key="ActiveMQUser" value="user"/>
    <add key="ActiveMQPassword" value="user"/>
    <add key="httpHostUrl" value="http://localhost:10280/esgcomputingserv"/>
    <!-- no port because it's default port 80 for testing/live environment-->
    <add key="httpsPort" value="1042"/>
    <!-- port 443 for testing/live environment-->
    <add key="ClientSettingsProvider.ServiceUri" value=""/>
    <add key="serilog:minimum-level" value="Verbose"/>
    <add key="serilog:using" value="Serilog.Sinks.Elasticsearch"/>
    <add key="serilog:write-to:Elasticsearch.nodeUris" value="http://54.194.240.189:9200"/>
    <add key="serilog:write-to:Elasticsearch.indexFormat" value="galog-{0:yyyy.MM}"/>
    <add key="serilog:write-to:Elasticsearch.templateName" value="galog"/>
    <add key="serilog:write-to:Elasticsearch.typeName" value="GaEvent"/>
    <add key="serilog:write-to:Elasticsearch.inlineFields" value="true"/>

  </appSettings>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="protobuf-net" publicKeyToken="257b51d87d2e4d67" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-2.3.2.0" newVersion="2.3.2.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GeoAPI" publicKeyToken="a1a0da7def465678" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-1.7.4.0" newVersion="1.7.4.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-1.0.101.0" newVersion="1.0.101.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <system.web>
    <membership defaultProvider="ClientAuthenticationMembershipProvider">
      <providers>
        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
      </providers>
    </membership>
    <roleManager defaultProvider="ClientRoleProvider" enabled="true">
      <providers>
        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
      </providers>
    </roleManager>
  </system.web>
</configuration>
